package api

import (
	"gitee.com/dn-jinmin/chatcms/internal/logic"
	"gitee.com/dn-jinmin/chatcms/internal/svc"
)

func initHandler(svc *svc.ServiceContext) []Handler {
	// new logics
	var (
		aILogic          = logic.NewAI(svc)
		speechcraftLogic = logic.NewSpeechcraft(svc)
	)

	// new handlers
	var (
		aI          = NewAI(svc, aILogic)
		speechcraft = NewSpeechcraft(svc, speechcraftLogic)
	)

	return []Handler{
		aI,
		speechcraft,
	}
}
